/*
 * @(#) AdditivePrescription.java 2013-8-12 下午2:47:01
 *
 * Copyright 2013 Rockwell Automation, Inc. All rights reserved.
 * Rockwell Automation PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package com.osi.mes.pm.object;

import com.datasweep.compatibility.client.ATRow;
import com.osi.mes.base.object.AtRowData;
import com.osi.mes.constants.IATConstants;

/**
 * 添加剂配方
 * @author Nemo, 2013-8-12 下午2:47:17
 */
public class AdditivePrescription extends AtRowData
{

	public AdditivePrescription(ATRow atRow)
	{
		super(atRow);
	}

	public String getMaterialNumber()
	{
		return toString(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_ITEM_CODE));
	}
	
	public String getMaterialDescription()
	{
		return toString(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_ITEM_DESC));
	}
	
	public String getPartNumber()
	{
		return toString(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_PART_NUMBER));
	}
	
	public String getPartDescription()
	{
		return toString(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_PART_DESC));
	}
	
	public Float getItemQty()
	{
		return toFloat(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_ITEM_QTY));
	}
	
	public String getScale()
	{
		return toString(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_SCALE));
	}
	
	public Float getErrorRange()
	{
		return toFloat(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_ERROR_RANGE));
	}
	
	public Float getStandardWeight()
	{
		return toFloat(getAtRow().getValue(IATConstants.AT_COLUMN_BM_ADDITIVE_PRESCRIPTION_STANDARD_WEIGHT));
	}
	
	@Override
	public String toString()
	{
		return getMaterialDescription();
	}
}
